<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ViewsProperty.ascx.cs" Inherits="Framework.Portal.Layouts.Admin.Components.Database.ViewsProperty" %>
<div>
<table class="content" cellspacing="1" cellpadding="0" width="100%">
    <tr>
        <td class="header2" valign="middle" align="left">
            <asp:HyperLink ID="lnkViewsList" Text="View List"
                        runat="server"></asp:HyperLink>
                    &nbsp;|&nbsp;
                    <asp:HyperLink ID="lnkViewDrop" Text="View Drop"
                        runat="server"></asp:HyperLink>
         </td>
    </tr>
</table>
<br />
<asp:UpdatePanel ID="upanelGridUserManagemt" runat="server" UpdateMode="Conditional" RenderMode="Inline">
        <ContentTemplate>
        <table class="content" cellspacing="1" cellpadding="0" width="100%">
            <tr>
                <td class="header1" align="left" style="height: 19px" colspan="2">
                    <asp:Label ID="lblCommandName" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="header2" height="18" align="left" colspan="2">
                    <asp:Label ID="lblError" runat="server" Visible="false" SkinID="error"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="postheader" width="25%" align="left">
                    <asp:Label ID="lblWiewsDrop" runat="server" Text="Views"></asp:Label>
                </td>
                <td class="post" width="75%" align="left">
                    <asp:DropDownList ID="dropViews" runat="server" AutoPostBack="True" OnSelectedIndexChanged="dropViews_SelectedIndexChanged">
                        </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="header2" height="18" align="left" colspan="2">Columns
                </td>
            </tr>
            <tr>
                <td class="postheader" colspan="2" align="left">
                    <asp:GridView ID="gridColumns" BorderColor="white" runat="server" AutoGenerateColumns="False" OnRowDataBound="gridColumns_RowDataBound">
                        <Columns>
                            <asp:BoundField HeaderText="Columns Name"
                                DataField="name" SortExpression="name"></asp:BoundField>
                            <asp:BoundField HeaderText="Columns Type"
                                DataField="name_t" SortExpression="name_t"></asp:BoundField>
                            <asp:TemplateField HeaderText="AllowNull">
                                <ItemTemplate>
                                    <asp:Label runat="Server" ID="lblNull"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <HeaderStyle CssClass="header2" Height="27" />
                        <AlternatingRowStyle CssClass="post" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td class="header2" height="18" align="left" colspan="2">Definition
                </td>
            </tr>
            <tr>
                <td class="postheader" colspan="2" align="left">                    
                    <asp:TextBox ID="txtDefinition" runat="server" TextMode="MultiLine" Rows="10" Columns="80"
                            Wrap="false"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldtxtDefinition" runat="server" ErrorMessage="*"
                        ControlToValidate="txtDefinition" Display="Dynamic" SkinID="error"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="postfooter" valign="middle" align="left" colspan="2">
                    <NS:Button LocalizedPage="ACTION" LocalizedTag="UPDATE" Authenticated="UPDATE" ID="btnUpdateDef" runat="server" CssClass="pbutton" OnClick="btnUpdateDef_Click" />&nbsp;
                    <asp:CheckBox ID="checkBackup" runat="server" Text="check Backup" Checked="True" />
                </td>
            </tr>
            <tr>
                <td class="header2" height="18" align="left" colspan="2">Dependencies
                </td>
            </tr>
            <tr>
                <td class="postheader" colspan="2" align="left">
                    <asp:TreeView ID="treeDependencies" runat="server" SkinID="treeMenuDependencies">
                        <Nodes>
                            <asp:TreeNode Value="Ref" Text="Ref" Expanded="False">
                                <asp:TreeNode Value="V" Text="View"
                                    Expanded="False" SelectAction="Expand"></asp:TreeNode>
                                <asp:TreeNode Value="P" Text="Store Procedure"
                                    Expanded="False" SelectAction="Expand"></asp:TreeNode>
                            </asp:TreeNode>
                            <asp:TreeNode Value="Refd" Text="Refd" Expanded="False">
                                <asp:TreeNode Value="U" Text="Table"
                                    Expanded="False" SelectAction="Expand"></asp:TreeNode>
                                <asp:TreeNode Value="V" Text="View"
                                    Expanded="False" SelectAction="Expand"></asp:TreeNode>
                                <asp:TreeNode Value="P" Text="Store Procedure"
                                    Expanded="False" SelectAction="Expand"></asp:TreeNode>
                                <asp:TreeNode Value="FN" Text="Function"
                                    Expanded="False" SelectAction="Expand"></asp:TreeNode>
                            </asp:TreeNode>
                        </Nodes>
                    </asp:TreeView>
                </td>
            </tr>
            <td class="postfooter" valign="middle" align="left" colspan="2">&nbsp;</td>
        </table>     
        </ContentTemplate>
    </asp:UpdatePanel>
</div>